<?php

class EventTypes
{
	private $eventtypes=array();
	
	public function __construct()
	{
		$database=$GLOBALS['DATABASE']->Recopy();
		$sql = "SELECT EventTypeID, EventType FROM EventTypes ORDER BY EventType";
		$database->executeSQL($sql);
		while($row=$database->getRow())
		{
			$this->eventtypes[$row['EventTypeID']]=$row['EventType'];
		}		
	}
	
	public function getEventTypes(){return $this->eventtypes;}
	
}
